package com.xio.cloud.service;

import com.xio.cloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

// 服务提供者eureka中的服务名
@Component
@FeignClient(value = "cloud-payment-server")
@RequestMapping("/payment")
public interface PaymentFeignService {

    @GetMapping("/get/{id}")
    CommonResult get(@PathVariable("id") Long id);

    @GetMapping("/timeout")
    String feigntTimeOut();

    @GetMapping("/zipkin")
    String zipkin();
}
